package com.spic.business.safetyactivity.domain;

import com.spic.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * 安全活动签到人员对象 safety_activity_sign
 *
 * @author spic
 * @date 2022-06-14
 */
public class SafetyActivitySign {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    @NotBlank(message = "活动id不能为空")
    private String activityId;

    private String signName;

    /**
     * 签到时间
     */
    private Date signTime;

    /**
     * 正常签到1 补签2
     */
    @NotBlank(message = "签到类型不能为空")
    private String type;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setActivityId(String activityId) {
        this.activityId = activityId;
    }

    public String getActivityId() {
        return activityId;
    }

    public void setSignName(String signName) {
        this.signName = signName;
    }

    public String getSignName() {
        return signName;
    }

    public void setSignTime(Date signTime) {
        this.signTime = signTime;
    }

    public Date getSignTime() {
        return signTime;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("activityId", getActivityId())
                .append("signName", getSignName())
                .append("signTime", getSignTime())
                .append("type", getType())
                .toString();
    }
}
